<?php

namespace App\Http\Requests\Api\v2;

use App\Http\Requests\CommonRequest;

class LiveApplyRequest extends CommonRequest
{
    public $scenes = [
        'store'  => "company_name,nick_name,we_chat_name",
        'update' => "company_name,nick_name,we_chat_name",
    ];

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'company_name' => ["required"],
            'nick_name'    => ["required"],
            'we_chat_name' => ["required"],
        ];
    }

    public function messages()
    {
        return [
            'company_name.required' => "公司名称不能为空！",
            'nick_name.required'    => "昵称不能为空！",
            'we_chat_name.required' => "微信号不能为空",
        ];
    }
}
